<template>
  <el-form ref="formRef" :model="form" label-position="top" :label-width="140">
    <div class="grid grid-cols-4 gap-x-3">
      <el-form-item label="物流方式" prop="lc_id" class="col-span-2">
        <VSelect v-model="form.lc_id" placeholder="请选择" :options="options.logisticsOptions" class="w-full" />
      </el-form-item>
      <el-form-item label="运单号" prop="logistics_number" class="col-span-2">
        <el-input v-model="form.logistics_number" placeholder="请输入" class="w-full" />
      </el-form-item>
      <el-form-item label="预计到货时间" class="col-span-2">
        <el-date-picker v-model="form.except_deliver_time" placeholder="日期选择" type="date" value-format="YYYY-MM-DD"
          class="w-full" />
      </el-form-item>
      <el-form-item label="sku">
        <el-input v-model="form.sku" placeholder="sku" class="w-full" disabled />
      </el-form-item>
      <el-form-item label="补货数量">
        <el-input v-model="form.process_num" placeholder="sku" class="w-full" disabled />
      </el-form-item>
    </div>
    <div>是否确认通知仓库等待补货？</div>
  </el-form>
</template>

<script setup>
const props = defineProps({
  modelValue: { type: Object, default: () => ({}) },
  options: { type: Object, default: () => ({}) },
})
const emit = defineEmits(['update:modelValue'])
const form = computed({
  get() {
    return props.modelValue
  },
  set(val) {
    emit('update:modelValue', val)
  }
})
const formRef = ref()
const validate = async () => await true
defineExpose({ validate })
</script>